package Objects;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
//@XmlType(name="UserProfileElementType")

public class UserProfile 
{
	//***************************************Class Variables*******************************************//

	private String _android_id;
	private String _google_account;
	private String _c2dm_register_id;
	private double _x = 500; //latitude
	private double _y =500; //longitude

	//***************************************Constructors*******************************************//

	public UserProfile(){
		
	}
	
	public UserProfile(String android_id, String google_account, String c2dm_register_id)
	{
		this._android_id = android_id;
		this._google_account = google_account;
		this._c2dm_register_id = c2dm_register_id;
	}

	//***************************************Public Methods*******************************************//

	@XmlElement
	public String get_android_id() 
	{
		return _android_id;
	}
	
	@XmlElement
	public String get_google_account() 
	{
		return _google_account;
	}
	
	@XmlElement
	public String get_c2dm_register_id() 
	{
		return _c2dm_register_id;
	}

	@XmlElement
	public double getX()
	{
		return this._x;
	}
	
	@XmlElement
	public double getY()
	{
		return this._y;
	}
	
	public void updatePosition(Double x, Double y) 
	{
		this._x = x;
		this._y = y;
	}
	
	public void set_android_id(String andId) 
	{
		_android_id = andId;
	}
	

	public void set_google_account(String googleAcount) 
	{
		_google_account = googleAcount;
	}
	
	
	public void set_c2dm_register_id(String c2dmstring) 
	{
		_c2dm_register_id = c2dmstring;
	}
	

}
